package cn.kgc.tangcco.anyang.aop.a_static;

public class UserServiceImplProxy implements UserService{
	private UserService target;
	
	public UserServiceImplProxy() {
		this(new UserServiceImpl());
	}

	public UserServiceImplProxy(UserService target) {
		this.target = target;
	}

	@Override
	public void save() {
		System.out.println("开启事务");
		target.save();
		System.out.println("提交事务");
	}
	
}
